﻿/*======================================*\
 * Author: 廖国添
 * LastModifyUser: 廖国添
 * Description: 表字段信息DTO
 * CreateTime：2013-1-15 21:50:48
 * ModifyTime:  
 * Remark: 代码生成器v0.1 by 廖国添
\*======================================*/
using System;
using ZLDC.GenericFrame.Entity.Attributes;
using ZLDC.GenericFrame.Entity;
namespace ZLDC.Entity
{
    /// <summary>
    ///  t_CompetencesOfCustomers 代码生成器生成的代码
    /// </summary>
   [Serializable]
   [TableProperty(DefaultOrderby = "[找不到主键] Desc",DbType = DbTypeEnum.SqlServer, ConnAppKey = "DefaultDb", PrimaryKey = "[找不到主键]", TableName = "t_CompetencesOfCustomers")]
   public partial class t_CompetencesOfCustomers : BaseEntity
   {
       #region 私有属性
	    		 private long _customerid;
		 private short _competenceid;
		 private long? _shopid;

	   #endregion
	    
	   #region 公有属性
	   		 /// <summary> 
		 /// 会员ID 
		/// </summary> 
		[ColumnProperty(ColumnName = "CustomerID")]
		public long CustomerID
		{ 
			set 
			{  
				object oldValue = _customerid;
				_customerid = value ;
				this.OnPropertyChanged("CustomerID", _customerid, oldValue);
				this.OnPropertyMappingChanged("CustomerID", _customerid, oldValue);
			} 
 			get{ return _customerid;} 
  		 } 

		 /// <summary> 
		 /// 权限ID 
		/// </summary> 
		[ColumnProperty(ColumnName = "CompetenceID")]
		public short CompetenceID
		{ 
			set 
			{  
				object oldValue = _competenceid;
				_competenceid = value ;
				this.OnPropertyChanged("CompetenceID", _competenceid, oldValue);
				this.OnPropertyMappingChanged("CompetenceID", _competenceid, oldValue);
			} 
 			get{ return _competenceid;} 
  		 } 

		 /// <summary> 
		 /// 店铺ID 
		/// </summary> 
		[ColumnProperty(ColumnName = "ShopID")]
		public long? ShopID
		{ 
			set 
			{  
				object oldValue = _shopid;
				_shopid = value ;
				if ((value == null) || (!value.Equals(oldValue))) 
				{  
					this.OnPropertyChanged("ShopID", _shopid, oldValue);
					this.OnPropertyMappingChanged("ShopID", _shopid, oldValue);
				}  
			} 
 			get{ return _shopid;} 
  		 } 


	   #endregion
	   
	   
   }
}
